package com.junqson.je.admin.controller;

        import com.junqson.je.admin.service.StatisticsService;
import com.junqson.je.common.model.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Descriptions 统计报表控制器
 * @Company
 * @Author Junqson
 * @Date 2020/3/2 10:58
 * @Version 1.0
 */
@RestController
@RequestMapping("/statistics")
public class StatisticsController {


    @Autowired
    private StatisticsService statisticsService;


    @RequestMapping("nums")
    public ApiResult allSumsNumbers() {
        return ApiResult.success(statisticsService.allSumNums());
    }

}
